//
//  SILightTimeInfo.m
//  CampingLight
//
//  Created by Piccolo on 24/03/2018.
//  Copyright © 2018 SmartIT. All rights reserved.
//

#import "SILightTimeInfo.h"

@implementation SILightTimeInfo

- (instancetype)initWithSmartTimeHour:(NSUInteger)smartTimeHour
                      smartTimeMinute:(NSUInteger)smartTimeMinute
                      smartTimeSecond:(NSUInteger)smartTimeSecond
                     awakenOntimeHour:(NSUInteger)awakenOnTimeHour
                   awakenOnTimeMinute:(NSUInteger)awakenOnTimeMinute
                    awakenOffTimeHour:(NSUInteger)awakenOffTimeHour
                  awakenOffTimeMinute:(NSUInteger)awakenOffTimeMinute
                       systemTimeHour:(NSUInteger)systemTimeHour
                     systemTimeMinute:(NSUInteger)systemTimeMinute
                     systemTimeSecond:(NSUInteger)systemTimeSecond {
    
    self = [super init];
    _smartTimeHour = smartTimeHour;
    _smartTimeMinute = smartTimeMinute;
    _smartTimeSecond = smartTimeSecond;
    _awakenOnTimeHour = awakenOnTimeHour;
    _awakenOnTimeMinute = awakenOnTimeMinute;
    _awakenOffTimeHour = awakenOffTimeHour;
    _awakenOffTimeMinute = awakenOffTimeMinute;
    _systemTimeHour = systemTimeHour;
    _systemTimeMinute = systemTimeMinute;
    _systemTimeSecond = systemTimeSecond;
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    
    id copy = [[[self class] alloc] init];
    if (copy) {
        [copy setSmartTimeHour:_smartTimeHour];
        [copy setSmartTimeMinute:_smartTimeMinute];
        [copy setSmartTimeSecond:_smartTimeSecond];
        [copy setAwakenOnTimeHour:_awakenOnTimeHour];
        [copy setAwakenOnTimeMinute:_awakenOnTimeMinute];
        [copy setAwakenOffTimeHour:_awakenOffTimeHour];
        [copy setAwakenOffTimeMinute:_awakenOffTimeMinute];
        [copy setSystemTimeHour:_systemTimeHour];
        [copy setSystemTimeMinute:_systemTimeMinute];
        [copy setSystemTimeSecond:_systemTimeSecond];
    }
    return copy;
}

@end
